package com.xj.entity;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamImplicit;
import lombok.Data;
import java.io.Serializable;
import java.util.List;

@Data
@XStreamAlias("RECORDSET")
public class XmlEntityVo<T> implements Serializable {


    private static final long serialVersionUID = 2061246789727327954L;

    @XStreamAsAttribute
    @XStreamAlias("VERSION")
    private String version = "2.0";

    @XStreamImplicit
    private List<T> list;

//    @XStreamImplicit
//    private String  row;

    public XmlEntityVo(List<T> list) {
        this.list = list;
    }




}
